import request from '@/utils/request'

// 报表中心分页列表
export function paging(query) {
  return request({
    url: '/reportCenter/reportCenter/paging',
    method: 'get',
    params: query
  })
}

// 报表中心统计状态数量
export function statisticsStatusNumber(query) {
  return request({
    url: '/reportCenter/reportCenter/statisticsStatusNumber',
    method: 'get',
    params: query
  })
}

// 保存报表数据
export function save(data) {
  return request({
    url: '/reportCenter/reportCenter/save',
    method: 'post',
    data: data
  })
}

// 导出 导入商品失败数据
export function doExportImportGoodsFail(reportCenterId) {
  return request({
    url: '/reportCenter/reportCenter/doExportImportGoodsFail',
    method: 'post',
    params: {
      reportCenterId
    }
  })
}

// 批量删除报表数据
export function deleteBatchReport(reportCenterIds) {
  var data = {
    reportCenterIds: reportCenterIds
  }
  return request({
    url: '/reportCenter/reportCenter/deleteBatchReport',
    method: 'post',
    data: data
  })
}
